/**
 * JAVACC DEMO 1.0
 */
package ${packPath}.service.plugins;


import com.apache.api.manager.PluginConnector;
import com.apache.api.vo.ParamsVo;
import com.apache.api.vo.ResultEntity;
import com.apache.cache.util.Validator;

/**
 * description:  平台生成的接口插件试例代码
 * 此类需要spring的配置文件中加配置,如：
 * <bean id="${sysName}UnityPlugin" class="${packPath}.service.plugins.${sysName}UnityPluginImpl"/>,
 * 并在${sysName}Service的spring配置中加如下：
 * <entry key="XXXX" value-ref="${sysName}UnityPlugin" />
 */
public class ${sysName}UnityPluginImpl implements PluginConnector {

	//此处需要引入对应功能Manager

	/**
	 * TODO 插件入口方法.  
	 */
	public Object execute(ParamsVo params) throws Exception {
	    ResultEntity resultEntity = new ResultEntity();
        /**
        * 平台生成试例
        xxx pro = (xx) param.getObj();
        String id =xxxManager.saveInfo(param);
        resultEntity.setEntity(id);
        **/
        resultEntity.setResult("T");
        resultEntity.setMessage("操作成功！");
        return resultEntity;
	}

}
